from base import Base
from selenium.webdriver.common.by import By
from time import sleep

class Guanzhu(Base):
    #点击关注
    djgz = (By.ID,'com.kongfz.app:id/lav_2')
    #点击关注用户
    djgzyh = (By.ID,'com.kongfz.app:id/lottie_attention')
    #点击用户头像
    djyhtx = (By.ID,'com.kongfz.app:id/iv_head_icon')
    #断言
    dy = (By.XPATH,'//android.widget.TextView[@text = 已关注]')

    def guanzhuyewu(self):
        self.find_ele(self.djgz).click()
        sleep(3)
        self.find_ele(self.djgzyh).click()
        sleep(3)
        self.find_ele(self.djyhtx).click()
        sleep(3)
